package cn.lf.dto.api.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("获取店铺商品信息返回类")
public class ShopProductInfoRepDTO {

    @ApiModelProperty("商品类型id")
    private String productTypeId;

    @ApiModelProperty("商品类型名称")
    private String productTypeName;

    @ApiModelProperty("商品信息列表")
    private List<ProductInfo> productInfoList;

    @Data
    @ApiModel("商品信息")
    public static class ProductInfo{

        @ApiModelProperty("商品id")
        private String pid;

        @ApiModelProperty("商品名称")
        private String productName;

        @ApiModelProperty("商品描述")
        private String description;

        @ApiModelProperty("商品图片")
        private String pic;

        @ApiModelProperty("商品价格")
        private String price;

        @ApiModelProperty("商品类排序")
        private String sort;

        @ApiModelProperty("库存数量")
        private String inventoryQuantity;

        @ApiModelProperty("商品销量")
        private String salesVolume;

        @ApiModelProperty("是否上架")
        private String onSale;

        @ApiModelProperty("商品类型id")
        private String productTypeId;

    }

}
